package com.hpsk.webSocket.model.ai.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hpsk.common.CommonVo;
import com.hpsk.webSocket.model.ai.dto.BizAiMessageParamDto;
import com.hpsk.webSocket.model.ai.vo.BizAiMessageVo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户消息体
 * </p>
 *
 * @author huangwang
 * @since 2025-05-20
 */
@Getter
@Setter
@TableName("biz_ai_message")
@Schema(description = "用户消息体")
@AutoMappers({
        @AutoMapper(target = BizAiMessageParamDto.class),
        @AutoMapper(target = BizAiMessageVo.class)
})
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class BizAiMessage extends CommonVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "关联id")
    @TableField("user_id")
    private Long userId;
}
